package com.university.evaluation.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 考评规则配置表
 */
@Data
@TableName("t_evaluation_rule")
public class EvaluationRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String ruleId;        // 规则ID
    private String collegeId;     // 学院ID
    private String indicators;    // 考评指标集合（JSON格式）
    private String semester;      // 生效学期（如2025-2026-1）
    private String status;        // 状态：ENABLED/DISABLED
    private LocalDateTime createTime;  // 创建时间
    private LocalDateTime updateTime;  // 更新时间

    // 状态常量
    public static final String STATUS_ENABLED = "ENABLED";
    public static final String STATUS_DISABLED = "DISABLED";
}
